package cn.amossun.starter.api.data.security.rule;

import cn.amossun.starter.api.data.security.config.ApiDataSecurityConfig;
import cn.amossun.starter.common.crypto.rule.EncryptRule;

import javax.crypto.NoSuchPaddingException;
import java.io.UnsupportedEncodingException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

/**
 * @description:
 * @author: Amos.Sun
 * @DateTime: 2020/03/01 15:16
 **/
public class ApiEncryptRule extends EncryptRule {

    public ApiEncryptRule(ApiDataSecurityConfig apiDataSecurityProperties) throws InvalidAlgorithmParameterException, NoSuchAlgorithmException, InvalidKeyException, NoSuchPaddingException, UnsupportedEncodingException {
        super(apiDataSecurityProperties.getApi());
    }
}
